public class Saler extends Employee{
private int base;
private int num;
private int moneyPieces;

    public Saler() {
    }

    public Saler(String name) {
        super(name);
    }

    public Saler(int base, int num, int moneyPieces) {
        this.base = base;
        this.num = num;
        this.moneyPieces = moneyPieces;
    }

    public Saler(String name, int base, int num, int moneyPieces) {
        super(name);
        this.base = base;
        this.num = num;
        this.moneyPieces = moneyPieces;
    }

    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getMoneyPieces() {
        return moneyPieces;
    }

    public void setMoneyPieces(int moneyPieces) {
        this.moneyPieces = moneyPieces;
    }

    @Override
    public double ComputeMoney(){
        return base+num*moneyPieces;
    }
}
